<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>顺丰</title>
    <script src="../jquery/jquery-3.6.0.min.js"></script>
    <link rel="stylesheet" href="./顺丰.css">
    <!-- 最新版本的 Bootstrap 核心 CSS 文件 -->
    <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css" integrity="sha384-HSMxcRTRxnN+Bdg0JdbxYKrThecOKuH5zCYotlSAcp1+c8xmyTe9GYg1l9a69psu" crossorigin="anonymous">

    <!-- 可选的 Bootstrap 主题文件（一般不用引入） -->
    <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap-theme.min.css" integrity="sha384-6pzBo3FDv/PJ8r2KRkGHifhEocL+1X2rVCTTkUfGk7/0pbek5mMa1upzvWbrUbOZ" crossorigin="anonymous">

    <!-- 最新的 Bootstrap 核心 JavaScript 文件 -->
    <script src="https://stackpath.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js" integrity="sha384-aJ21OjlMXNL5UyIl/XNwTMqvzeRMZH2w8c5cRVpzpU8Y5bApTppSuUkhZXN0VxHd" crossorigin="anonymous"></script>
</head>
<body>
<div id="box">
    <img src="" alt="" id="img1">
    <ul id="ul1">
        <li><a href="www.baidu.com">首页</a></li>
        <li><a href="www.baidu.com">物流服务</a></li>
        <li><a href="www.baidu.com">智慧科技</a></li>
        <li><a href="www.baidu.com">服务支持</a></li>
        <li><a href="www.baidu.com">可延续发展</a></li>
        <li><a href="www.baidu.com">投资者关系</a></li>
        <li><a href="www.baidu.com">关于我们</a></li>
        <li><span class="glyphicon glyphicon-user" id="tt1"></span></li> 
        <li><a href="www.baidu.com">快速登录/注册</a>&nbsp;&nbsp;&nbsp;<img src="https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fdpic.tiankong.com%2F57%2F89%2FQJ6237586840.jpg&refer=http%3A%2F%2Fdpic.tiankong.com&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=jpeg?sec=1648119296&t=b07c038c45e506ee22f251bab094567d" width="20px" alt=""></li>
      </ul>
    </div>
    <div style="width: 100%; height: 500px;text-align: center; "><h1 style="line-height: 500px;">放张图片</h1></div>
    <div style="width: 100%; height: 120px;" id="kuai1" >
        <div style=" display: flex; margin: auto; width: 1000px; height:120px;">
            <div style="width: 200px; height: 120px;" class="fangkuai">运单追踪</div>
            <div style="width: 200px; height: 120px;" class="fangkuai">我要寄件</div>
            <div style="width: 200px; height: 120px;" class="fangkuai">运费时效咨询</div>
            <div style="width: 200px; height: 120px;" class="fangkuai">服务网点咨询</div>
            <div style="width: 200px; height: 120px;" class="fangkuai">收集范围咨询</div>
        </div>
    </div>
    <div style="margin: auto; width: 250px; height: 50px; margin-top: 55px;"><h1>物流服务介绍</h1></div>
    <div style="display: flex; margin: auto; width: 1500px;height: 50px;" id="q1" >
        <div class="fangkuai2">快递服务</div>
        <div class="fangkuai2">快运服务</div>
        <div class="fangkuai2">冷运服务</div>
        <div class="fangkuai2">医药服物</div>
        <div class="fangkuai2">国际服务</div>
    </div>
    <br><br>
    <div style="width: 1500px; height: 500px; margin: auto; border: 1px solid #000; " id="w1">
        <img src="../imgs/3.jpg" alt="" style="display:block" width="1500px" height="500px">
        <img src="../imgs/1.jpg" alt="" style="display:none" width="1500px" height="500px">
        <img src="../imgs/2.jpg" alt="" style="display:none" width="1500px" height="500px">
        <img src="../imgs/4.jpg" alt="" style="display:none" width="1500px" height="500px">
        <img src="../imgs/5.jpg" alt="" style="display:none" width="1500px" height="500px">
    </div>

    <div style="margin: auto; width: 250px; height: 50px; margin-top: 55px;"><h1>新闻咨询</h1></div>
    <div style="margin: auto; width: 1500; height: 150px; margin-top: 55px; border: #000 1px solid;text-align: center;"><h1 style="line-height: 120px;">作者已经累了</h1></div>
</body>
<script>
    $('.fangkuai').mouseover(function(){
        $(this).css('background-color','#fff')
        $(this).css('color','red')
    })
    $('.fangkuai').mouseout(function(){
        $(this).css('background-color','red')
        $(this).css('color','#fff')
    })


    $('.fangkuai2').click(function(){ 
        $('.fangkuai2').css('color','')
        $(this).css('color','red')
    })    
    


    var a = document.querySelectorAll('#q1 div')
    var b = document.querySelectorAll('#w1 img')
    for (let i = 0; i <= a.length-1; i++) {
        a[i].onclick = function () {
             for (let j = 0; j < b.length; j++) {
                b[j].style.display = 'none'  
            }
             b[i].style.display = 'block'
        }
    }
</script>
</html>